<?php
$xajax = new xajax(); 
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->registerFunction("logoutFunc");

$xajax->registerFunction("processFavorit");
$xajax->registerFunction("unfavoritFunc");
$xajax->registerFunction("reportProblem");
$xajax->registerFunction("hidePost");
$xajax->processRequests();
?>

<?php get_header(); ?>

<DIV id=container>

<?php //get_adsense(); ?>

<BR/>

	<?php get_nav_bar(); ?>

<DIV id=contents>

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>	

<DIV class=news-summary id=news-<?php the_post_id(); ?> style="Z-INDEX: <?php get_z_index(); ?>;">
<DIV class=news-body>
<H3 id=title<?php the_post_id(); ?>><img align="absmiddle" border="0" src="<?php bloginfo('stylesheet_directory'); ?>/img/arrow-b.gif" width="20" height="20"> <A href="<?php the_post_url(); ?>" target="_blank"><?php the_post_title(); ?></A> </H3>
<P class=news-submitted><A href="<?php the_siteurl(); ?>/?user=<?php the_post_author(); ?>"><?php the_post_author(); ?></A> 于 <?php the_past_time(); ?> 前提交 <span class=viaurl><?php get_viaurls(); ?></span></P>
<P class=news-body-text><?php the_content_abs(); ?> <img align="absmiddle" border="0" src="<?php bloginfo('stylesheet_directory'); ?>/img/arrow-s.gif" width="13" height="13"></P>


<?php get_popup_urls(); ?>

<DIV class=news-details>
<A class="tool comments" href="<?php the_siteurl(); ?>/?q=<?php the_post_id(); ?>"><?php get_comment_text(); ?></A>
<SPAN class=tool>标签:<?php get_post_tags_5(); ?> </SPAN>

</DIV>

<UL class=news-digg>
  <LI class="digg-count shade-<?php the_shade_id(); ?>" id=main0>
  <A id=diggs<?php the_post_id(); ?> href="<?php the_siteurl(); ?>/?q=<?php the_post_id(); ?>"><STRONG id=diggs-strong-<?php the_post_id(); ?>><?php the_favor_count(); ?></STRONG></A> 
  <LI class=digg-it id=diglink<?php the_post_id(); ?>><?php get_favorit_link(); ?>
  </LI>
</UL>

</DIV></DIV>

	<?php endwhile;?>
	<?php endif; ?>

<div class="pages">
<?php get_post_nav(); ?>
</div>

</DIV>

<br/>
<DIV id=sidebar>

<DIV class=boxed>
<DIV>
<?=get_option('top_news'); ?>

</DIV></DIV>

<DIV class=boxed2>
<DIV>
<P><A href="./?queue" class=submitbotton><em>&#187;</em>最新待选文章</A></P>
<hr style="color:#cbcacb; height:1px;" />
<P><A href="./?submit" class=submitbotton><em>&#187;</em>提交新的文章</A></P>
</DIV></DIV>

<UL class=main-menu>

  <LI>
  <DIV class=boxed>
  <DIV>
  <span style="font-size:12px;">链接</span>
  <UL class=column-list>
    <LI><A href="./?tagcloud">标签云图</A></LI>
    <LI><A href="./?bestpost">最热文章</A></LI>
    <LI><A href="./?userlist">用户排名</A></LI>
    <LI><A href="./?contact">意见反馈</A></LI></UL></DIV></DIV>

  <LI><A href="./?feed" class="rss">最新聚合<img src="<?php bloginfo('stylesheet_directory'); ?>/img/rss.gif" border=0 align=absmiddle></A> 
</UL>
</DIV></DIV>
</DIV></DIV>
  
<?php get_footer(); ?>

